import request from '@/utils/request'

// 查询资源明细列表
export function listSurResourceDetail(query) {
  return request({
    url: '/sources/surResourceDetail/list',
    method: 'get',
    params: query
  })
}

// 查询资源明细详细
export function getSurResourceDetail(id) {
  return request({
    url: '/sources/surResourceDetail/' + id,
    method: 'get'
  })
}

// 新增资源明细
export function addSurResourceDetail(data) {
  return request({
    url: '/sources/surResourceDetail',
    method: 'post',
    data: data
  })
}

// 修改资源明细
export function updateSurResourceDetail(data) {
  return request({
    url: '/sources/surResourceDetail',
    method: 'put',
    data: data
  })
}

// 删除资源明细
export function delSurResourceDetail(id) {
  return request({
    url: '/sources/surResourceDetail/' + id,
    method: 'delete'
  })
}
